<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <cpn>
            <span slot="left">查询内容:</span>
            <input type="text" placeholder="请输入查询内容" slot="center">
            <button slot="right">确定</button>
        </cpn>
    </div>

    <template id="cpn">
        <div>
            <slot name='left'><span>左边</span></slot>
            <slot name='center'><span>中间</span></slot>
            <slot name='right'><span>右边</span></slot>
        </div>
    </template>
    <script src= '../js/vue.js'></script>
    <script>
        const cpn = {
            template: '#cpn'
        }
        const app = new Vue({
            el:'#app',
            data:{

            },
            components:{
                cpn
            },
            methods:{
                
            }
        })
    </script>
</body>
</html>